﻿/*
 * Created by SharpDevelop.
 * User: lebeda
 * Date: 28.2.2014
 * Time: 7:14
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Text;
using CommandLine;
using CommandLine.Text;

namespace simpleExplorer
{
    /// <summary>
    /// startup Options of program.
    /// </summary>
    public class Options
    {
        [Option('t', "onTop", DefaultValue = false, HelpText = "Hold window on top.")]
        public bool onTop { get; set; }

        [Option('c', "closeExec", DefaultValue = true, HelpText = "Close window after execute item.")]
        public bool closeExec { get; set; }

        [Option('n', "centerScreen", DefaultValue = false, HelpText = "Close window after execute item.")]
        public bool centerScreen { get; set; }
        
        [Option('l', "closeOnLost", DefaultValue = false, HelpText = "Close window after lost focus.")]
        public bool closeOnLost { get; set; }        
        
        
        [Option('d', "dir", Required = false, HelpText = "directory to menu.")]
        public string dirmenu { get; set; }
        
        [Option('r', "dirRecurse", Required = false, HelpText = "recursive directory to menu.")]
        public string dirRecurse { get; set; }
        
        [Option('p', "notes", Required = false, HelpText = "directory with notes.")]
        public string notes { get; set; }
        
        
        [HelpOption]
        public string GetUsage()
        {
            var usage = new StringBuilder();
            usage.AppendLine("simpleExplorer 1.0");
            usage.AppendLine("Read user manual for usage instructions...");
            return usage.ToString();
        }
    }
}
